package com.bdqn.t330;


import com.bdqn.t330.entity.Right;
import com.bdqn.t330.entity.User;
import com.bdqn.t330.mapper.UserMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;
import java.util.List;

@SpringBootTest
@RunWith(SpringRunner.class)
public class UserTester {

    @Resource
    UserMapper userMapper;

    @Test
    public void getUserNameTester() {
        List<User> list = userMapper.findByUsrName("a");
        System.out.println(list.size());
    }

    @Test
    public void findRightByUsrNameTester() {
        List<Right> list = userMapper.findRightByUsrName("bdqn");
        System.out.println(list.size());
    }
}
